import axios from "@/tools/axios-config";
import { auth } from "@/tools/auth";

export const getUserById = (userId) => {
    return axios.get(`/users/${userId}/`, {
        headers: {
            'Authorization': `token ${auth.currentUser && auth.currentUser.token}`
        }
    }).then((res) => res.data);
};